import request from '@/utils/request'

// 查询新增题库列表
export function listNaire(query) {
  return request({
    url: '/InfoQuestionNaire/naire/list',
    method: 'get',
    params: query
  })
}

// 查询新增题库详细
export function getNaire(id) {
  return request({
    url: '/InfoQuestionNaire/naire/' + id,
    method: 'get'
  })
}

// 新增新增题库
export function addNaire(data) {
  return request({
    url: '/InfoQuestionNaire/naire',
    method: 'post',
    data: data
  })
}

// 修改新增题库
export function updateNaire(data) {
  return request({
    url: '/InfoQuestionNaire/naire',
    method: 'put',
    data: data
  })
}

// 删除新增题库
export function delNaire(id) {
  return request({
    url: '/InfoQuestionNaire/naire/' + id,
    method: 'delete'
  })
}
